package com.zt.chatgpt.openai.service;

import com.zt.chatgpt.openai.model.aggregates.ChatProcessAggregate;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter;

/**
 * @author: zt
 * @Description: 调用ai入口
 * @create: 2024-05-17 20:47
 */

public interface IChatService {

    /**
     * ResponseBodyEmitter是Spring框架中用于响应体流式传输的类。它允许服务器以异步方式发送响应体
     * @param chatProcessAggregate
     * @return
     */
    ResponseBodyEmitter completions(ResponseBodyEmitter emitter, ChatProcessAggregate chatProcessAggregate);
}
